<?php $this->header(); ?>
<div class="wrap">
    <div class="nav">
        <ul class="cc">
            <li class="current"><a href="/?g=Admin&m=<?php echo MODULE; ?>&a=index">幻灯片列表</a></li>
        </ul>
    </div>

    <?php if (MODULE != 'Page'): ?>
        <div class="mb10"><a class="btn" href="/?g=Admin&m=<?php echo MODULE; ?>&a=add" title="添加幻灯片" role="button"><span class="add"></span>添加幻灯片</a></div>
    <?php endif; ?>

    <?php if (!empty($list)): ?>
        <div class="table_list">
            <table width="100%">
                <thead>
                    <tr>
                        <td>ID</td>
                        <td>幻灯片名称</td>
                        <td>操作</td>
                    </tr>
                </thead>
                <?php foreach ($list as $key => $value): ?>
                    <tr>
                        <td><?php echo $value['slideshow_type_id']; ?></td>
                        <td><?php echo $value['slideshow_type_name']; ?></td>
                        <td>
                            <a href="<?php echo '/?g=Admin&m=' . MODULE . '&a=edit&id=' . $value['slideshow_type_id']; ?>" class="btn btn_submit J_ajax_submit_btn" >编辑</a>
                            <a href="<?php echo '/?g=Admin&m=' . MODULE . '&a=pictrue&slideshow_type_id=' . $value['slideshow_type_id']; ?>" class="btn btn_submit J_ajax_submit_btn" >图片管理</a>
                            <a href="<?php echo '/?g=Admin&m=' . MODULE . '&a=delete&id=' . $value['slideshow_type_id']; ?>" class="btn btn_submit J_ajax_submit_btn" onclick="return deleteWarning(this)">删除</a>
                        </td>
                    </tr>
                <?php endforeach; ?>
            </table>
        </div>
        <?php echo $page; ?>
    <?php else: ?>
        <div class="not_content_mini"><i></i>亲！没内容！</div>
            <?php endif; ?>


</div>
<?php $this->footer(); ?>